import 'package:flutter/material.dart';
import 'package:hao_ke/pages/index/index_recommend_item.dart';

class IndexRecommend extends StatelessWidget {
  const IndexRecommend({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 200,
      decoration: BoxDecoration(
          color: Colors.white,
          borderRadius: BorderRadius.circular(10)
      ),
      margin: EdgeInsets.all(10),
      padding: EdgeInsets.all(10),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        children: indexItem.map((item) => InkWell(onTap: (){
          item.onTap(context);
        },child:
        Column(
          children: [Image.asset(item.image,width: 40,),Text(item.title,style: TextStyle(fontWeight: FontWeight.w500,color: Colors.black),),],
        ),)).toList(),
      ),
    );
  }
}
